xend: Balloon down memory to achive enough DMA32 memory for PV guests
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 14 Nov 2009 08:09:50 +0000 (08:09 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 14 Nov 2009 08:09:50 +0000 (08:09 +0000)
commitf481a3f9c3d69d1a7a059538547550142ac66792
tree97db5e2323468b91637c56913fa5327b2d5c5dbf
parent38d6eb319ce61c93966c84fd07c3efcd383cdb15
xend: Balloon down memory to achive enough DMA32 memory for PV guests
with PCI pass-through to succesfully launch.

If the user hasn't used dom0_mem=3D bootup parameter, the privileged
domain usurps all of the memory. During launch of PV guests with PCI
pass-through we ratchet down the memory for the privileged domain to
the required memory for the PV guest. However, for PV guests with PCI
pass-through we do not take into account that the PV guest is going to
swap its SWIOTLB memory for DMA32 memory - in fact, swap 64MB of
it. This patch balloon's down the privileged domain so that there are
64MB of DMA32 memory available.

From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/lowlevel/xc/xc.c
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/XendNode.py